package com.itheima.dao;

import com.itheima.entity.Record;
import com.itheima.entity.RecordDetail;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    //获取两个日期之间的数据
    List<Record> getAllSetmealByPhoneNumber(@Param("phoneNumber") String phoneNumber, @Param("fistDate")String fistDate, @Param("lastDate")String lastDate);

    //根据订单id查询相关信息
    RecordDetail findRecordDetailById(Integer id);
}
